package com.logos.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class Student implements Serializable {
    private String name;
    private int age;

    private Student(String name) {
        this.name = name;
        this.age = 19;
    }

    private int eat(String food) {
        System.out.println(name + " eat " + food);
        return age;
    }
}
